package com.msw.jcwapi.dx.dxfb.service.impl;

import com.msw.jcwapi.dx.dxfb.entity.Dxfb;
import com.msw.jcwapi.dx.dxfb.mapper.DxfbMapper;
import com.msw.jcwapi.dx.dxfb.service.IDxfbService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.msw.jcwapi.wb.wbdz.entity.Wbdz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2025-04-27
 */
@Service
public class DxfbServiceImpl extends ServiceImpl<DxfbMapper, Dxfb> implements IDxfbService {

    @Autowired
    private DxfbMapper dxfbMapper;

    //查询全部
    @Override
    public List<Dxfb> list() {
        return dxfbMapper.list();
    }

    //通过dxid删除该信息
    @Override
    public boolean deleteById(int id) {
        return dxfbMapper.deleteById(id);
    }

    //添加
    @Override
    public boolean add(Dxfb dxfb) {
        return dxfbMapper.add(dxfb);
    }

    //编辑(通过dxid编辑)
    @Override
    public boolean update(Dxfb dxfb) {
        return dxfbMapper.Edit(dxfb);
    }

    //通过dxid查询全部信息
    @Override
    public Dxfb listByDxId(int id) {
        return dxfbMapper.listByDxId(id);
    }

}
